package com.example.blogserver.service;

import com.example.blogserver.pojo.User;
import com.example.blogserver.a_utils.ResponseBodyMessage;

import javax.servlet.http.HttpServletRequest;

@SuppressWarnings({"all"})
public interface RegService {
    /**
     * 发送邮箱验证码
     */
    ResponseBodyMessage<Boolean> sendEmailCode(HttpServletRequest request, String emailId);

    /**
     * 对邮箱信息、邮箱验证码、密码进行校验，校验通过实行注册并返回注册账号
     */
    ResponseBodyMessage<User> Reg(HttpServletRequest request, String emailId, String emailCode, String passworda, String passwordb);
}
